package club.banyuan.dao;

import club.banyuan.bean.Blog;
import club.banyuan.bean.User;
import club.banyuan.security.MyUserDetails;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
    User getUserByUsernameAndPassword(String name,String password);
    User getUserByUserId(Integer userId);
    User getUserByUserName(String username);
    List<User> getAllUsers();
    Integer insertUser(User user);
}
